package com.cyq.day17.Door;

public class Test {
    public static void main(String[] args) {
        System.out.println("-----老式门功能-----");
        Door d=new Door();
        d.closeDoor();
        d.openDoor();
        System.out.println("-----防盗门功能-----");
        AntitheftDoor d2=new AntitheftDoor();
        d2.call();
        d2.photo();
        d2.closeDoor();
        d2.openDoor();
    }
}
